﻿using System;
using System.Collections.Generic;
using System.Web;
using PayRoller.Code;
using System.Web.SessionState;
using System.Web.Profile;
using System.Web.UI;
using HySoft.Cash.Business;

namespace PayRoller.Member
{
    public class EmpPayDel : Page, IRequiresSessionState
    {
        // Methods
        protected void Page_Load(object sender, EventArgs e)
        {
            if (base.Request["BankSid"] != null)
            {
                string str = base.Request["EmpSid"].ToString();
                TbankinfoBN obn = new TbankinfoBN(this.Page);
                obn.Delete(Convert.ToInt32(base.Request["BankSid"]));
                obn.Dispose();
                obn = null;
                base.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('Success!');window.location='EmpPay.aspx?EmpSid=" + str + "';</script>");
            }
        }

        // Properties
        protected HttpApplication ApplicationInstance
        {
            get
            {
                return this.Context.ApplicationInstance;
            }
        }

        protected DefaultProfile Profile
        {
            get
            {
                return (DefaultProfile)this.Context.Profile;
            }
        }
    }

}
